package Collection;

import java.util.ArrayList;
import java.util.Collection;

public class test {
    public static void main(String[] args) {
        Moviesinfo x1 = new Moviesinfo("李白",9.8,"libai");
        Moviesinfo x2 = new Moviesinfo("李黑",9.8,"libai");
        Moviesinfo x3 = new Moviesinfo("李红",9.8,"libai");
        Collection<Moviesinfo>  list=new ArrayList<>();
        list.add(x1);
        list.add(x2);
        list.add(x3);
//        for (Moviesinfo moviesinfo : list) {
//            System.out.println(moviesinfo);
//
//        }
        System.out.println(x1.hashCode());//获取哈希值
        System.out.println(x2.hashCode());
    }
}
